<template>
    <div :class="[btnClass,cname]">
        <slot></slot>
    </div>
</template>

<script>
// 自定义类名，便于后期更改，和组件复用
export default {
    props: {
        cname: {
            type: String,
            default: "",
        }
    },
    data() {
        return {
            btnClass: "btn",
        }
    }
}
</script>

<style lang="scss">
@import '../../assets/css/element.scss';

.btn {
    @include btn;
}
</style>